<?php $this->set('title', 'Add Survey'); ?>

<?php echo $html->link('Surveys', array('controller'=>'Surveys', 'action'=>'index')); ?>

<div class="header">Add New Survey</div>
<div class="errMsg"><?php $session->flash();?></div>
<?php echo $form->create('Survey', array('action' => 'add')); ?>
<table border="0" cellpadding=="0" cellspacing="0">
	<tr>
		<td class="leftcell">
			Survey Title:
		</td>				
		<td class="rightcell">
			<?php echo($form->error('Survey.name', array('class' => 'errMsg'))); ?>
			<?php echo($form->text('Survey.name', array('style' => 'width:200px;'))); ?>
		</td>
	</tr>
	<tr>
		<td class="rightcell" colspan="2">
			<?php echo $form->end('Submit') ?>
		</td>
	</tr>
</table>